import request from '@/utils/request'

// 查询实时获取历史K线列表
export function listSpotrealtimehistoryklinebak(query) {
  return request({
    url: '/spotrealtimehistorykline/spotrealtimehistoryklinebak/list',
    method: 'get',
    params: query
  })
}

// 查询实时获取历史K线详细
export function getSpotrealtimehistoryklinebak(id) {
  return request({
    url: '/spotrealtimehistorykline/spotrealtimehistoryklinebak/' + id,
    method: 'get'
  })
}

// 新增实时获取历史K线
export function addSpotrealtimehistoryklinebak(data) {
  return request({
    url: '/spotrealtimehistorykline/spotrealtimehistoryklinebak',
    method: 'post',
    data: data
  })
}

// 修改实时获取历史K线
export function updateSpotrealtimehistoryklinebak(data) {
  return request({
    url: '/spotrealtimehistorykline/spotrealtimehistoryklinebak',
    method: 'put',
    data: data
  })
}

// 删除实时获取历史K线
export function delSpotrealtimehistoryklinebak(id) {
  return request({
    url: '/spotrealtimehistorykline/spotrealtimehistoryklinebak/' + id,
    method: 'delete'
  })
}
